import java.util.Scanner;

public class Main4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        double r = sc.nextDouble();
        double l = sc.nextDouble();
        double h = sc.nextDouble();
        double area = l*h-(r*r)*Math.PI;

        System.out.print("Fencing Cost is $");
        System.out.printf("%.2f\n",(l+h)*70);

        System.out.print("Concrete Cost is $");
        System.out.printf("%.2f\n",area*20);

        sc.close();
    }
}